import request from '@/service';
import {requestForm} from '@/service';

import { LoginData } from "@/api/auth/types";
export function loginApi(loginData: LoginData) {
  return requestForm.post({
		url: '/system/login',
		data:loginData
  });
}
export function logoutApi() {
  return request.post({
    url: '/system/logout'
  });
}
export function getRsaPublicKeyApi() {
  return request.get({
    url: '/system/rsa-pks'
  });
}
export function getCaptchaApi() {
  return request.get({
    url: '/system/captcha'
  });
}

